echo off

mkdir slab_unity_test
 
D:\CYX\Technology\Software\IDE\toolchain-gccmingw-w64-1.810.0\bin\gcc.exe -fprofile-arcs -ftest-coverage -o slab_unity_test Wed_framework/Unity_test/slab/slab_unity_test.c Wed_framework/Unity_test/adapter/Wed_platform_adpt.c Wed_framework/Unity/src/unity.c Wed_framework/mem/slab/Wed_slab.c Wed_framework/print/wed_print.c -IWed_framework/Unity_test/adapter -IWed_framework -lgcov -w

IF %errorlevel% NEQ 0 (
    pause
    exit
)

slab_unity_test.exe

D:\CYX\Technology\Software\IDE\toolchain-gccmingw-w64-1.810.0\bin\gcov.exe slab_unity_test.c

gcovr -r . --html --html-details -o coverage.html

COPY *.css slab_unity_test
COPY *.html slab_unity_test

DEL /F /Q *.gcda
DEL /F /Q *.gcno
DEL /F /Q *.gcov
DEL /F /Q *.exe
DEL /F /Q *.html
DEL /F /Q *.css

pause